<?php namespace Common\Model;
use Hdphp\Model\Model;
//文章与标签表的中间表
class ArcTag extends Model{
	//指定表名模型
	protected $table = 'article_tag';
	public function store($aid){
		foreach (Q('post.tid',array()) as $tid){
			$data = array(
				'tag_tid'=>$tid,
				'article_aid'=>$aid
			);
			$this->add($data);
		}
	}
}

 ?>